projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1577a7d
)
tests/testselection.c: Use accessor functions to access GtkWidget
author
Javier Jardón
<jjardon@gnome.org>
Sun, 15 Aug 2010 22:32:44 +0000
(
00:32
+0200)
committer
Javier Jardón
<jjardon@gnome.org>
Sun, 22 Aug 2010 16:30:37 +0000
(18:30 +0200)
tests/testselection.c
patch
|
blob
|
history
diff --git
a/tests/testselection.c
b/tests/testselection.c
index 77ac3452bfdad25bebcbe93c0f1002767ff9891c..ff7a99caa6c1405e93e682342f3a1e078068b557 100644
(file)
--- a/
tests/testselection.c
+++ b/
tests/testselection.c
@@
-152,7
+152,7
@@
selection_toggled (GtkWidget *widget)
{
if (have_selection)
{
-
if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == widget->window
)
+
if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == gtk_widget_get_window (widget)
)
gtk_selection_owner_set (NULL, GDK_SELECTION_PRIMARY,
GDK_CURRENT_TIME);
have_selection = FALSE;